<?php
class HomeController extends AppController {
	var $name = 'Home';
	var $uses = array();
	var $view = 'Theme';
	var $theme = 'qat';
    var $helpers = array('text');
	//var $layout = 'home';
	function index() {
        $products = ClassRegistry::init('products.Product')->find('all', array(
            'conditions' => array("Product.is_published"	=>1,"Product.special"	=>1),
            'limit' => '3',
	        'order'		=> array(
							'Product.news_date desc',
							'Product.created desc'
						),
            'contain'		=> array()
                )
            ); 
		$this->set(compact('products'));
	}
}
?>
